package cn.codesea.housework_user.net.service;

import cn.codesea.housework_user.entity.User;
import cn.codesea.housework_user.entity.Worker;
import cn.codesea.housework_user.net.data.Result;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface WorkerService {

    @POST("worker_register")
    Call<Result> workerRegister(@Body Worker worker);

    @POST("worker_update")
    Call<Result> workerUpdate(@Body Worker worker);

    @FormUrlEncoded
    @POST("worker_login")
    Call<Result> workerLogin(@Field("phone") String phone, @Field("pwd") String pwd);

    @FormUrlEncoded
    @POST("service_getWorkerServices")
    Call<Result> getWorkerServices(@Field("workerid") Integer workerid);

    @FormUrlEncoded
    @POST("worker_recommend")
    Call<Result> workerRecommend(@Field("serviceid") Integer serviceid);

    @FormUrlEncoded
    @POST("worker_getEvaluation")
    Call<Result> getEvaluation(@Field("workerid") Integer workerid);
}
